<template>
	<view>
		<top-nav title="Talk to Elsevier"></top-nav>
		<view style="width: 100%;height: 96rpx;"></view>
		<view class="comment-con">
			<view class="tit ellip">#中国学术科研之我见</view>
			<view class="input-box">
				<textarea auto-height maxlength="300" @input="descInput" placeholder="讲述你和Elsevier的故事" placeholder-class="gray"></textarea>
				<view class="tnum text-right">{{desc}}/300</view>
			</view>
			<view class="submit"><image src="../../static/images/gaungchang1.png"></image> 提交</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				desc:0
			};
		},
		methods:{
			descInput(e) {
				this.desc = e.detail.value.length
			},
		}
	}
</script>
<style>page{background-color: #F7F7F7;}</style>
<style lang="scss" scoped>
.gray{
	color: #8C8C8C;
}
.comment-con{
	padding: 0 32rpx;
	.tit{
		font-size: 50rpx;
		font-weight: bold;
		padding: 16rpx 0;
	}
	.input-box{
		background: #F0F0F0;
		border-radius: 24rpx;
		border: 2rpx solid #E5E5E5;
		padding: 24rpx 32rpx 16rpx;
		textarea{
			width: 100%;
			font-size: 28rpx;
			margin: auto;
			min-height: 170rpx;
		}
		.tnum{
			font-size: 22rpx;
			color: #595959;
			margin-top: 15rpx;
		}
	}
	.submit{
		display: flex;
		align-items: center;
		justify-content: center;
		width: 240rpx;
		height: 88rpx;
		background: #FE6C02;
		border-radius: 44rpx;
		margin:  32rpx auto;
		font-size: 38rpx;
		color: #fff;
		image{
			width: 44rpx;
			height: 44rpx;
			margin-right: 6rpx;
		}
	}
}
</style>
